<?php


defined('APPLICATION_PATH')
    || define('APPLICATION_PATH','../application');

defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
defined('ZF_PATH')
    || define('ZF_PATH', (getenv('ZF_PATH') ? getenv('ZF_PATH') : './'));

set_include_path(implode(PATH_SEPARATOR, array(
                                         get_include_path(),
                                         ZF_PATH)));

/** Zend_Application */
require_once 'Zend/Application.php';

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);
//var_dump($application);
//die();
$application->bootstrap()
    ->run();